<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://code.jquery.com/jquery-3.6.4.min.js" integrity="sha256-oP6HI9z1XaZNBrJURtCoUT5SUnxFr8s3BzRl+cbzUq8=" crossorigin="anonymous"></script>
    <style>
        div{
            width: 100px;
            height: 100px;
            border: pink 1px solid;
        }
    </style>
    <script>
        $(function () {

                // $("div").mouseover(function () {
                //     console.log("进来了");
                // });
                // $("div").mouseout(function () {
                //     console.log("出去了");
                // });
                // $("div").bind("mouseover click",function () {
                //     console.log("bind绑定事件");
                // });
                $("div").one("mouseover click",function () {
                console.log("bind绑定事件");
            });
        });
    </script>
</head>
<body>
        <div></div>
</body>
</html>